package nl.boelen.game.entities.functions;

import nl.boelen.game.client.Client;
import nl.boelen.game.entities.Player;
import nl.boelen.game.gfx.Colors;

public class Inventory {

    private static final int INVENTORYSIZE = 5;

    private Player player;
    private Client client;
    private int[] items;

    public Inventory(Client client, Player player) {
        this.player = player;
        this.client = client;
        this.items = new int[INVENTORYSIZE];
    }

    public boolean isInventoryFull() {
        return false;
    }

    public void render() {
        int xStart = 1;
        int yStart = client.screen.height - 13;
        int size = 10;

        for (int i = 0; i < INVENTORYSIZE; i++) {
            for (int w = 0; w < size; w++) {
                for (int h = 0; h < size; h++) {
                    if (w == 0 || h == 0 || w == size - 1 || h == size - 1) {
                        client.screen.pixels[xStart + w + (yStart + h) * client.screen.width] = Colors.get(000);
                    } else {
                        client.screen.pixels[xStart + w + (yStart + h) * client.screen.width] = Colors.get(333);
                    }
                }
            }
            xStart += 11;
        }
    }
}